<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th class="sorting text-left">ID</th>
                <th class="sorting text-left">店铺名称</th>
                <th class="sorting text-left">申请时间</th>
                <th class="sorting text-left">申请金额</th>
                <th class="sorting text-left">申请订单号</th>
                <th class="sorting text-left">状态</th>
                <th class="sorting text-left">审核时间</th>
                <th class="sorting text-left">操作</th>
            </tr>
            </thead>

            <tbody>
            <volist name="list" id="v">
                <tr>
                    <td class="text-left">{$v.id}</td>
                    <td class="text-left">
                        <a href="{:U('Admin/Shop/update_shop',array('id'=>$v[shop_id]))}">
                            {$v.shop_name}
                        </a>
                    </td>
                    <td class="text-left">{$v.create_time|date="Y-m-d",###}</td>
                    <td class="text-left">{$v.money}</td>
                    <td class="text-left">{$v.partner_trade_no}</td>
                    <td class="text-left">
                        <if condition="$v[status] eq 0">申请中</if>
                        <if condition="$v[status] eq 1">申请成功</if>
                        <if condition="$v[status] eq 2">申请失败</if>
                    </td>
                    <td class="text-left"><if condition="$v['update_time'] gt 0">{$v.update_time|date="Y-m-d",###}</if></td>
                    <td class="text-left">
                        <if condition="$v[status] eq 0">
                            <a href="{:U('Admin/Shop/editWithdrawals',array('id'=>$v['id'],'p'=>$_GET[p]))}" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-pencil"></i></a>
                        </if>
                        <if condition="in_array($v[status],array(1,2))">
                            <a href="{:U('Admin/Shop/editWithdrawals',array('id'=>$v['id'],'p'=>$_GET[p]))}" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="查看"><i class="fa fa-eye"></i></a>
                        </if>
                        <if condition="in_array($v[status],array(0,2))">
                            <a href="javascript:void(0);" onclick="del('{$v[id]}')" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                        </if>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>

    <div class="row">
        <div class="col-sm-6 text-left"></div>
        <div class="col-sm-6 text-right">{$show}</div>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left">
    </div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function () {
        var page = $(this).data('p');
        ajax_get_table('search-form2', page);

    });


    $(function () {
        $("[data-toggle='tooltip']").tooltip();
    })
</script>